package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.GoodsUnitConversion;
import com.arpa.wms.domain.entity.InventoryStatus;
import com.arpa.wms.domain.entity.ReceiveRegister;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 收货明细DTO
 * </p>
 *
 * @author LEO
 * @since 2020-08-04
 */
@Data
@ApiModel(value="ReceiveItemVO对象", description="收货明细")
public class ReceiveItemVO implements Serializable {


    @ApiModelProperty(value = "数据标识")
    private String code;

    @ApiModelProperty(value = "收货单号")
    private String receiveCode;

    @ApiModelProperty(value = "组织机构")
    private String groupCode;

    @ApiModelProperty(value = "来源单item标识")
    private String sourceItemCode;

    @ApiModelProperty(value = "货主编码code")
    private String shipmentCode;

    @ApiModelProperty(value = "商品编码code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "冗余code，用于code用于他用的情况下")
    private String receiveItemCode;

    @ApiModelProperty(value = "退货关联的发货单明细code")
    private String deliveryItemCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "计划数量")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "收货数量")
    private BigDecimal receivedQuantity;

    @ApiModelProperty(value = "入库数量")
    private BigDecimal inboundQuantity;

    @ApiModelProperty(value = "退货数量（收货单位）")
    private BigDecimal refundQuantity;

    @ApiModelProperty(value = "退货数量（基本单位）")
    private BigDecimal refundBasicQuantity;

    @ApiModelProperty(value = "最小单位转换件装量")
    private BigDecimal unitConvertQuantity;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "状态")
    private String status = "";

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "库位")
    private String Location;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "商品对应的单位转换列表")
    private List<GoodsUnitConversion> goodsUnitConversionList;


    @ApiModelProperty(value = "商品登记列表")
    private List<ReceiveRegister> receiveRegistersList;

    @ApiModelProperty(value = "对应的商品批次规则")
    private BatchRuleVO batchRuleVO;


    @ApiModelProperty(value = "收货登记明细")
    private List<ReceiveRegisterVO> receiveRegisterVOList = new ArrayList<>();


    @ApiModelProperty(value = "取消数量")
    private BigDecimal cancelQuantity = BigDecimal.ZERO;

    @ApiModelProperty(value = "可退数量")
    private BigDecimal canReturnQuantity = BigDecimal.ZERO;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "库存状态列表")
    private List<InventoryStatus> InventoryStatusList;


}
